//
//  Common.swift
//  MySinaWeibo
//
//  Created by eastriver on 16/10/8.
//  Copyright © 2016年 believewilliam. All rights reserved.
//

import UIKit
let client_id = "4113377060"
let client_secret = "bac90e55d4fe13cfbcd9650dd3ddff04"
let redirect_uri = "http://www.itheima.com"
let kNotificationName = "setRootViewController"
let errorTip = "向服务器请求数据失败，请重试"
let screenWidth = UIScreen.main.bounds.width
let screenHeight = UIScreen.main.bounds.height
// 定义一个全局的DateFormatter对象
let sharedDateFormatter = DateFormatter()


//定义全局的方法 随机色
func randomColor() -> UIColor {
    let r = CGFloat(arc4random() % 256) / 255.0
    let g = CGFloat(arc4random() % 256) / 255.0
    let b = CGFloat(arc4random() % 256) / 255.0
    return UIColor(red: r, green: g, blue: b, alpha: 1)
}
